﻿using B.S.InOutErrorCode;
using System.ComponentModel.DataAnnotations;

namespace B.S.InOut.Domain
{
    /// <summary>
    /// 调拨管理实体
    /// </summary>
    public class AllocateModel
    {
        /// <summary>
        /// 调拨ID（主键）
        /// </summary>
        [Key]
        public int Id { get; set; }
        /// <summary>
        /// 产品ID（外键）
        /// </summary>
        public string? PId { get; set; }
        /// <summary>
        /// 调拨订单号
        /// </summary>
        public string? AllocateNum { get; set; }
        /// <summary>
        /// 关联单号
        /// </summary>
        public string? AssociatedNum { get; set; }
        /// <summary>
        /// 批次
        /// </summary>
        public string? batch { get; set; }
        /// <summary>
        /// 规格
        /// </summary>
        public string? Specifications { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public string? Quantity { get; set; }
        /// <summary>
        /// 原仓库
        /// </summary>
        public string? OriginalWare { get; set; }
        /// <summary>
        /// 原库位
        /// </summary>
        public string? Originallocation { get; set; }
        /// <summary>
        /// 调拨仓库
        /// </summary>
        public string? Alllocation { get; set; }
        /// <summary>
        /// 制单人
        /// </summary>
        public string? Creator { get; set; }
        /// <summary>
        /// 审核人
        /// </summary>
        public string? Reviewer { get; set; }
        /// <summary>
        /// 审核时间
        /// </summary>
        public DateTime? AllAuditTime { get; set; }
        /// <summary>
        /// 审核状态
        /// </summary>
        public ApiStatus? AllAuditstatus { get; set; }
        /// <summary>
        /// 制单时间
        /// </summary>
        public DateTime? AllCreationTime { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public string? AllModifiedBy { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? AllChangeTime { get; set; }
        /// <summary>
        /// 逻辑删除列
        /// </summary>
        public int? IsDelete { get; set; } = 0;
        /// <summary>
        /// 审核原因
        /// </summary>
        public string ShenRember { get; set; }

    }
}